import { Info } from "../entitys/Info";
import { AppDataSource } from "../type-orm";

const infoRepository = AppDataSource.getRepository(Info);


export const getInfos = async () => {
  return await infoRepository.find();
};


export const saveInfos = async (infos: Info[]) => {
  return await infoRepository.save(infos);
};